package dailearn.stream.controller;

import dailearn.stream.output.SendMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author daify
 * @date 2019-07-14
 */
@RestController
public class SendMessageController {

    @Autowired
    private SendMessageService sendMessage;

    @RequestMapping(value = "send",method = RequestMethod.GET)
    public String sendMessag() {
        sendMessage.sendMsg("user name");
        return "send message: user name";
    }

}
